import 'package:get/get.dart';
import 'package:flutter/material.dart';

class Toast {
  static void show({
    String title = '提示',
    required String message,
  }) {
    Get.snackbar(
      title,
      message,
      snackPosition: SnackPosition.BOTTOM,
      backgroundColor: const Color.fromRGBO(0, 0, 0, 0.7),
      colorText: Colors.white,
      borderRadius: 4.0,
      margin: const EdgeInsets.only(
        bottom: 16,
        left: 16,
        right: 16
      ),
    );
  }
}
